import '@babel/polyfill'

const isHas = [1, 2, 3].includes(2)

const fn = () => {
  console.log(isHas)
}

fn()

new Promise((resolve, reject) => {
  resolve(100)
})

class Point {
  constructor(x, y) {
    this.x = x
    this.y = y
  }
  getX() {
    return {
      x: this.x,
      y: this.y
    }
  }
}
class Point1 {
  constructor(x) {
    this.x = x
  }
  getX() {
    return this.x
  }
}

const cp = new Point(25, 24)
console.log(cp)

const cp1 = new Point(11, 22)
console.log(cp1)